package com.ruoyi.net.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 网元-接口-模式配置对象 element_port_mode
 * 
 * @author net
 * @date 2024-11-17
 */
public class ElementPortMode extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 网元id
     */
    @Excel(name = "网元id")
    private String elementId;

    /**
     * 单盘
     */
    @Excel(name = "单盘")
    private String diskName;

    /**
     * 接口名
     */
    @Excel(name = "接口名")
    private String portName;

    /**
     * 接口模式(以太网、MTU)
     */
    @Excel(name = "端口模式(以太网:enable、mtn:disable、虚拟：veth)")
    private String portMode;

    /**
     * 条目状态（0未激活 1已激活）
     */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    private String status;

    @Excel(name = "绑定状态", readConverterExp = "0=未绑定；1=已绑定")
    private String bindStatus;

    @Excel(name = "绑定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date bindTime;

    /**
     * 删除标记（0正常 2删除）
     */
    private String delFlag;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getElementId() {
        return elementId;
    }

    public void setDiskName(String diskName) {
        this.diskName = diskName;
    }

    public String getDiskName() {
        return diskName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public String getPortName() {
        return portName;
    }

    public void setPortMode(String portMode) {
        this.portMode = portMode;
    }

    public String getPortMode() {
        return portMode;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getBindStatus() {
        return bindStatus;
    }

    public void setBindStatus(String bindStatus) {
        this.bindStatus = bindStatus;
    }

    public Date getBindTime() {
        return bindTime;
    }

    public void setBindTime(Date bindTime) {
        this.bindTime = bindTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("elementId", getElementId())
                .append("diskName", getDiskName())
                .append("portName", getPortName())
                .append("portMode", getPortMode())
                .append("status", getStatus())
                .append("bindStatus", getBindStatus())
                .append("bindTime", getBindTime())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}